<template>
  <view class="salary-show">
    <CommonHeader>工资条</CommonHeader>
    <view class="salary-list">
      <view
        class="salary-item"
        v-for="(item, index) in salaryList"
        :key="index"
        @click="showPop(item.date)"
      >
        <view class="salary-logo">
          <img src="@/static/salary-logo.svg" alt="" />
        </view>
        <view class="salary-desc">
          <view class="salary-date">{{
            item.date.split('-')[0] + '年' + item.date.split('-')[1] + '月'
          }}</view>
          <view class="salary-range">计薪范围：{{ item.dateRange }}</view>
        </view>
        <view class="salary-careate-time">{{ item.createTime }}</view>
      </view>
    </view>
  </view>
</template>
<script src="./script.js"></script>
<style src="./style.less" lang="less"></style>
